import React, { Component } from 'react';
import './App.css';
import Index from './components/Index.js';
import Car from './components/Car.js';
import { BrowserRouter as Router, Route, Link ,NavLink } from "react-router-dom";
class App extends Component {
  render() {
    return (
      <div className="App">
			<Router>
			    <div>
			      <nav className="nav">
			        <ul>
			          <li>
			            <NavLink exact to="/">首页</NavLink>
			          </li>
			          <li>
			            <NavLink to="/Car/">购物车</NavLink>
			          </li>
			        </ul>
			      </nav>
			      <Route path="/" exact component={Index} />
			      <Route path="/Car/" component={Car} />
			    </div>
<<<<<<< HEAD
			  </Router>	
=======
			  </Router>
>>>>>>> 02b69c8bc3d30aaaa94bbd11a54f16d3ad48afa6
      </div>
    );
  }
}

export default App;
